loadPNGHeaders

Loads a PNG file headers

Can be used to determine which color type to use at runtime.

@trusted
loadPNGHeaders
(
IR
)
(,
IAllocator allocator = theAllocator()
)
if (
isInputRange!IR &&
is(ElementType!IR == ubyte)
)

Return Value

Type: managed!(PNGFileFormat!HeadersOnly)

A PNG files headers without the image data

Meta